package org.melanesia.sql.exceptions;

/**
 * Thrown when trying to execute an empty batch. This usually happens when no
 * {@link org.melanesia.sql.Batch#addBatch()} has been called on a {@link org.melanesia.sql.Batch}.
 *
 * @author marcin.kielar
 */
public class EmptyBatchException extends SQLExecutionException {

    /** Serial version uid for serialization. */
    private static final long serialVersionUID = 7361746811370079705L;

    /**
     * Constructs new {@link EmptyBatchException}.
     */
    public EmptyBatchException() {
        super("The batch is empty. Try calling addBatch prior to setQuery / setParameter / execute methods.");
    }

}
